﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quick.CodeGenerator.Model
{
    public class ColumnInfo
    {
        /// <summary>
        /// 栏位名
        /// </summary>
        public string COLUMN_NAME { get; set; }
        /// <summary>
        /// 栏位类型
        /// </summary>
        public string DATA_TYPE { get; set; }
        /// <summary>
        /// C#中DBParameter数据类型
        /// </summary>
        public string CSharpColumnDBType { get; set; }
        /// <summary>
        /// C#中的数据类型
        /// </summary>
        public string CSharpColumnType { get; set; }
        /// <summary>
        /// 栏位长度
        /// </summary>
        public string DATA_LENGTH { get; set; }
        /// <summary>
        /// 数据精度
        /// </summary>
        public string DATA_PRECISION { get; set; }
        /// <summary>
        /// 数据小数点精度
        /// </summary>
        public string DATA_SCALE { get; set; }
        /// <summary>
        /// 是否允许为空 Y / N 
        /// </summary>
        public string NULLABLE { get; set; }
        /// <summary>
        /// 默认值
        /// </summary>
        public string DATA_DEFAULT { get; set; }
        /// <summary>
        /// 栏位注释
        /// </summary>
        public string COMMENTS { get; set; }
        /// <summary>
        /// 表名
        /// </summary>
        public string TABLE_NAME { get; set; }
        /// <summary>
        /// 约束类型:  P:主键
        /// </summary>
        public string CONSTRAINT_TYPE { get; set; }
        /// <summary>
        /// 表类型  TABLE / VIEW
        /// </summary>
        public string OBJECT_TYPE { get; set; }
    }
}
